home *** CD-ROM | disk | FTP | other *** search
- Path: fiesta.srl.ford.com!usenet
- From: jmccall4@sl0270.srl.ford.com (James McCallum)
- Newsgroups: comp.lang.c++
- Subject: Re: int::~int()
- Date: 16 Apr 1996 13:31:08 GMT
- Organization: SRL, Ford Motor Company
- Message-ID: <4l07es$682@fiesta.srl.ford.com>
- References: <marnoldDpuDu9.D7s@netcom.com>
- Reply-To: jmccall4@sl0270.srl.ford.com
- NNTP-Posting-Host: cae002.srl.ford.com
-
- In article <marnoldDpuDu9.D7s@netcom.com>, marnold@netcom.com (Matt Arnold) writes:
- >Xu Yifeng <jafd@public.sta.net.cn> writes:
- >
- >>Hi everybody,
- >
- >>can your compiler compile following program?
- >
- >>//------------------------
- >>void main()
- >>{
- >> int i = 0;
- >
- >> i.int::~int();
- >>}
- >>//------------------------
- >
- >>is it a legal C++ program?
- >
- >It's supposed to be, but most C++ compiler's will not compile it.
- >
-
- Both the Sun C+= 4.1 and g++ 2.7.2 compile this program but both complain
- that main should return an int type :-;
-
-
- --
- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
- * *
- * -- James McCallum Ford Motor Company *
- * / / jmccall4@ford.com +1 313 248 9017 *
- * | / *
- * *<%%%%%%%%%%|(===================================-- *
- * | \ *
- * \ \ jmccall4@sl0270.srl.ford.com *
- * -- *
- * *
- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
-
-
-